I don't know how to describe this problem, but I just know that it doesn't work on canvas when I want an image for a specific role:
if (interaction.member.roles.cache.has('980553630782464068') === user.id) list2.push("MODERATOR");
.replace("MODERATOR", "Moderator", user.id)
It turns out that the image does not appear on the canvas, and this error has been happening for a long time.
Assuming interaction is an Interaction, interaction.member.roles.cache.has() returns a boolean, and user.id is a Snowflake, so they're never going to be strictly equal (since === always returns false for two arguments of differing types), and thus the if statement will never execute the code within it.
if (interaction.member.roles.cache.has('980553630782464068')) is probably what you're looking for, that checks if the person who caused interaction has the role with the id 980553630782464068.